<script>
    jQuery("#tabs ul li").each(function(){
        if(jQuery(this).children().attr('action') == 'gallery_app' || jQuery(this).children().attr('action') == 'coupon')
            jQuery(this).hide();
        if(jQuery(this).children().attr('action') == 'home_applications')
            jQuery(this).attr('class','current');
        });
</script>
<div class="w100p bgl">
    <div class="w100p bgr">
        <div class="inner_container gallery1">
            <?php echo $functions->appPostcardMenu(true);?>            
            <table class="widefat" cellspacing="0" style="width: 60%;">
                <thead>
                    
                    <tr style="">
                        <th style="border: none">Statistics</th>                          
                        <th style="text-align: center;width: 60px; text-align: center; border-bottom: 0; border-top: 0;"></th> 
                        <th style="border: none; text-align: center">Most Used Templates</th>
                    </tr>
                    <tr>
                                               
                    </tr>
                </thead>
                <tbody>
                    <tr class="bg_gray1">
                        <td style="font-weight: bold">Total number of postcards created:</td>
                        <td style="border-right: 1px solid #fff" ><p><?php echo empty($total_card)? 0:$total_card ?></p></td>  
                        <td >
                                <?php 
                                if(isset($object[0])){
                                    echo $object[0]->name." ({$object[0]->nr_created}) 
                                    <span style='float:right'><a title='' href='{$object[0]->url}' rel='prettyPhoto'>
                                    <img height='30' src='{$object[0]->thumb_url}' alt=''>
                                    </a></span>";
                                }  
                                ?>
                        </td> 
                    </tr>                    
                    <tr class="bg_gray2">
                        <td style="font-weight: bold">Total number of shares on Facebook:</td>
                        <td style="border-right: 1px solid #fff"><p><?php echo empty($total_share_fb)? 0:$total_share_fb  ?></p></td>
                        <td >
                                <?php 
                                if(isset($object[1])){
                                    echo $object[1]->name." ({$object[1]->nr_created})
                                    <span style='float:right'><a title='' href='{$object[1]->url}' rel='prettyPhoto'>
                                    <img height='30' src='{$object[1]->thumb_url}' alt=''>
                                    </a></span>
                                    ";
                                }  
                                ?>
                        </td> 
                    </tr>
                    <tr class="bg_gray1">
                        <td style="font-weight: bold">Total number of users:</td>
                        <td style="border-right: 1px solid #fff"><p><?php echo empty($total_user)? 0:$total_user  ?></p></td>
                        <td >
                                <?php 
                                if(isset($object[2])){
                                    echo $object[2]->name." ({$object[2]->nr_created})
                                    <span style='float:right'><a title='' href='{$object[2]->url}' rel='prettyPhoto'>
                                    <img height='30' src='{$object[2]->thumb_url}' alt=''>
                                    </a></span>
                                    ";
                                }  
                                ?>
                        </td> 
                    </tr>
                    <tr class="bg_gray2">
                        <td style="font-weight: bold">Total number of shares on email:</td>
                        <td style="border-right: 1px solid #fff"><p><?php echo empty($total_share_email)? 0:$total_share_email ?></p></td>
                        <td >
                                <?php 
                                if(isset($object[3])){
                                    echo $object[3]->name." ({$object[3]->nr_created})
                                    <span style='float:right'><a title='' href='{$object[3]->url}' rel='prettyPhoto'>
                                    <img height='30' src='{$object[3]->thumb_url}' alt=''>
                                    </a></span>
                                    ";
                                }  
                                ?>
                        </td> 
                    </tr>
                    
                </tbody>
            </table>
            
            <br clear="both" />
            <?php echo $content_view?>
        </div>
    </div>
</div>